/**
	@file
	Kernel functions error handling system. Provides functions for setting and getting functions error result.
	Almost all kernel functions sets lastError variable (see documentation of each function for further
	information). All error codes are defines in \ref errno.h 
	(already included in errors.h). Call \ref getLastError() to get the last occured error code.
	If function (whatever which one) returned successfully, then lastError will be set to zero
	(\ref NO_ERROR).
	
	@author Konstantin Kastanov
*/
#ifndef ERRORS_H
#define ERRORS_H
#include "errno.h"
#include "dataTypes.h"


extern u8int getLastError();
extern u8int setLastError(u8int errorCode); 
extern s8int* getErrorMessage(u8int errorCode);
extern s8int* getLastErrorMessage();


#endif